package user;

import util.Record;

public class Nurse extends HospitalEmployee {

	public Nurse(String pNum,String name, String division) {
		super(pNum, name, division, User.NURSE);
		
	}


	public boolean controlRecordRead(Record rec) {
		return rec.getNurse().equals(pNbr) || rec.getDivision().equals(division);
	}


	@Override
	public boolean controlWriteRecord(Record rec) {
		return rec.getNurse().equals(pNbr);
	}


	@Override
	public boolean controlDeleteRecord(Record rec) {
		// TODO Auto-generated method stub
		return false;
	}


	@Override
	public boolean controlCreateDocument() {
		// TODO Auto-generated method stub
		return false;
	}	

}
